//玩家日志
"use strict"
exports.index = async function(){
    this.view = "branch/dataDigCard";
     let server = this.model.branch("server",this.branch);
     let keys = ["name"]
     let ret= await server.mget(keys);
     let data={'server':[]};
     for(let k in ret){
            let v = ret[k];
            let d={};
            d.sid=v._id;
            d.sname=v.name;
            data.server.push(d);
    }
    return data;
}

exports.query = async function(){
    this.output='json';
    let sid=this.get('sid','int');
    let ret= await this.library("game/request",this.branch,sid,'/dataDigCard/query',this.req.body);
    return ret;
}